#ifndef __NVS_VALUE_H__
#define __NVS_VALUE_H__

#include <stdio.h>
#include <stdbool.h>
#include "radar.h"

extern char devicesn[30];

extern void nvs_init(void);
extern void paramenter_setting_str(const char *flag,const char *data);
extern void paramenter_setting_u32(const char *flag, uint32_t data);
extern void paramenter_setting_u16(const char *flag, uint16_t data);
extern void paramenter_setting_u8(const char *flag, uint8_t data);
extern void paramenter_restore(uint8_t level);
extern void study_time_reset(learning_duration_t *duration, char *day);
extern void nvs_save_studytime(learning_duration_t duration);
extern void nvs_record_error(bool bit, uint8_t pos);

#endif